﻿<div ng-controller="clienteController">
    <form ng-submit="save()">
        Nom:<input type="text" ng-model="cliente.nombre" /><br />
        Ruc:<input type="text" ng-model="cliente.ruc" /><br />
        fechaNac:<input type="text" ng-model="cliente.fechaNac" /><br />
        <button type="submit">Save</button>
    </form>
    <table>
        <tr ng-repeat="d in clientes">
            <td>{{d.nombre}} {{d.fechaNac | date:'dd/MM/yyyy'}}</td>
            <td><a href="" ng-click="delete(d.id)">x</a></td>
            <td><a href="" ng-click="selec(d)">Select</a></td>

        </tr>
    </table>
</div>